//导入封装的网络请求类工具
import { h } from "vue";
import network from "./network";
import da from "element-plus/packages/locale/lang/da";
import he from "element-plus/packages/locale/lang/he";

//封装各种接口请求

//医职人员登录接口请求
export const medicalStaffLogin = (data = {}) => network.post('medical-staff/login', data)

//医职人员注销接口请求
export const loginOut = (header = {}) => network.post('user/loginOut', {}, header)

//药剂师获取药物列表接口请求
export const medicineManageList = (data = {}, header = {}) => network.post('medical-staff/pharmacist/queryDrugInventory', data, header)

//药剂师查看待取药病人列表接口请求
export const takeMedicineList = (data = {}, header = {}) => network.post('medical-staff/pharmacist/takeMedicinList', data, header)

//药剂师添加药物接口请求
export const addMedicine = (data = {}, header = {}) => network.post('medical-staff/pharmacist/addMedicine', data, header)

//药剂师修改药物接口请求
export const updateMedicine = (data = {}, header = {}) => network.put('medical-staff/pharmacist/updateMedicine', data, header)

//药剂师停用药物接口请求
export const stopMedicine = (data = {}, header = {}) => network.get('medical-staff/pharmacist/stopmedicine', data, header)

//药剂师确认取药接口请求
export const confirmTaking = (data = {}, header = {}) => network.get('medical-staff/pharmacist/comfireTaking', data, header)

//药剂师查看待取药病人的药物清单接口请求
export const queryMedicine = (data = {}, header = {}) => network.get('medical-staff/pharmacist/queryMedicine', data, header)

//医生查看未就诊病人列表接口请求
export const showWaitForSeeList = (data = {}, header = {}) => network.get('medical-staff/doctor/showWaitForSeeList', data, header)

//医生查看待开药病人列表接口请求
export const showWaitForOpenList = (data = {}, header = {}) => network.get('medical-staff/doctor/showWaitForOpenList', data, header)

//医生查看病人信息接口请求
export const startDiagnose = (data = {}, header = {}) => network.post('medical-staff/doctor/startDiagnose', data, header)

//医生获取自己当前挂号状态接口请求
export const getStatus = (header = {}) => network.get('medical-staff/doctor/getStatus', {}, header)

//医生修改挂号状态接口请求
export const changeStatus = (header = {}) => network.get('medical-staff/doctor/changeStatus', {}, header)

//医生添加诊断信息接口请求
export const submitDiagnose = (data = {}, header = {}) => network.post('medical-staff/doctor/submitDiagnose', data, header)

//医生获取可用药物列表接口请求
export const getMedicineList = (data = {}, header = {}) => network.post('medical-staff/doctor/getMedicineList', data, header)

//医生提交药物列表接口请求
export const submitPrescription = (data = {}, header = {}) => network.post('medical-staff/doctor/submitPrescription', data, header)

//医生获取病人所有诊断记录接口请求
export const getUserTotalRecord = (data = {}, header = {}) => network.get('medical-staff/doctor/getUserTotalRecord', data, header)

//医院员工查看个人基本信息接口请求
export const getInformation = (header = {}) => network.post('medical-staff/getInformation', {}, header)

//医院员工修改个人基本信息接口请求
export const updateInformation = (data = {}, header = {}) => network.post('medical-staff/updateInformation', data, header)

//医院员工修改密码接口请求
export const updateStaffPass = (data = {}, header = {}) => network.post('medical-staff/updatePass', data, header)

//管理员获取医院职工列表接口请求
export const queryMedicalStaff = (data = {}, header = {}) => network.post('medical-staff/queryMedicalStaff', data, header)

//管理员新增医院职工接口请求
export const addMedicalStaff = (data = {}, header = {}) => network.post('medical-staff/addMedicalStaff', data, header)

//管理员启用/停用医院职工接口请求
export const accountStatus = (data = {}, header = {}) => network.post('medical-staff/accountStatus', data, header)

//管理员修改医院职工信息接口请求
export const updateMedicalStaff = (data = {}, header = {}) => network.post('medical-staff/updateMedicalStaff', data, header)

//管理员获取资讯列表接口请求
export const search = (data = {}, header = {}) => network.get('information/search', data, header)

//管理员新增资讯接口请求
export const add = (data = {}, header = {}) => network.post('information/add', data, header)

//管理员修改资讯接口请求
export const update = (data = {}, header = {}) => network.post('information/update', data, header)

//管理员删除资讯接口请求
export const deleted = (data = {}, header = {}) => network.post('information/delete', data, header)

//管理员通过日期获取医院各科室挂号情况接口请求
export const appointmentDetails = (data = {}, header = {}) => network.post('information/appointmentDetails', data, header)

//管理员通过日期获取医院各科室财务数据接口请求
export const billDetails = (data = {}, header = {}) => network.post('information/billDetails', data, header)

//管理员获取最近某段时间的科室挂号情况接口请求
export const daysAppInfo = (data = {}, header = {}) => network.post('information/daysAppInfo', data, header)

//管理员获取最近某段时间的科室财务情况接口请求
export const daysBillInfo = (data = {}, header = {}) => network.post('information/daysBillInfo', data, header)

//管理员获取角色列表接口请求
export const checkRoles = (header = {}) => network.post('sys-permision/checkRoles', {}, header)

//管理员查看角色权限列表接口请求
export const checkStaffPermissions = (data = {}, header = {}) => network.post('sys-permision/checkStaffPermissions', data, header)

//管理员查看所有权限列表接口请求
export const check = (header = {}) => network.post('sys-permision/check', {}, header)

//管理员新增权限接口请求
export const addPermissions = (data = {}, header = {}) => network.post('sys-permision/addPermissions', data, header)

//管理员新增角色权限接口请求
export const addStaffPermissions = (data = {}, header = {}) => network.post('sys-permision/addStaffPermissions', data, header)

//管理员删除角色权限接口请求
export const removePermissions = (data = {}, header = {}) => network.post('sys-permision/removePermissions', data, header)

//管理员获取科室列表接口请求
export const getAllDepartment = (header = {}) => network.get('department/getAllDepartment', {}, header)

//管理员新增科室列表接口请求
export const addDepartment = (data = {}, header = {}) => network.post('department/addDepartment', data, header)

//管理员编辑科室列表接口请求
export const updateDepartment = (data = {}, header = {}) => network.post('department/updateDepartment', data, header)

//管理员删除科室列表接口请求
export const deleteDepartment = (data = {}, header = {}) => network.post('department/deleteDepartment', data, header)

// export const medicalStaffLogin = (data = {}) => network.post('medical-staff/login', data)

export const userLogin = (data = {}) => network.post('/user/login', data)

export const getBills = (data = {}, header = {}) => network.post('bill/checkBill', data, header)

export const logout = (data = {}, header = {}) => network.post('/user/loginOut', data, header)

export const getMyInfo = (data = {}, header = {}) => network.post('/user/checkInfo', data, header)

export const checkPassword = (data = {}, header = {}) => network.post('/user/checkPass', data, header)

export const updateInfo = (data = {}, header = {}) => network.post('/user/updateInformation', data, header)

export const updatePass = (data = {}, header = {}) => network.post('/user/updatePass', data, header)

export const updateIdNo = (data = {}, header = {}) => network.post('/user/updateIdNo', data, header)

export const getRecord = (data = {}, header = {}) => network.get('/record/checkRecords', data, header)

export const getRecordDetail = (data = {}, header = {}) => network.get('/record/getDetail', data, header)

export const getAppointInfo = (data = {}, header = {}) => network.post('/appointment/appointment_list', data, header)

export const checkProgress = (data = {}, header = {}) => network.post('user/checkProgress', data, header)

export const getHotDoctor = (data = {}, header = {}) => network.post('/medical-staff/hotDoctor', data, header)

export const getDoctorInfo = (data = {}, header = {}) => network.get('/medical-staff/getDoctorInfo', data, header)

export const getAllDeparts = (data = {}, header = {}) => network.get('/department/getAllDepart', data, header)

export const appoint = (data = {}, header = {}) => network.post('/appointment/appoint', data, header)

export const getUnreadInfo = (data = {}, header = {}) => network.post('/notice/getUnread', data, header)

export const getReadInfo = (data = {}, header = {}) => network.post('/notice/getRead', data, header)

export const setReadInfo = (data = {}, header = {}) => network.post('/notice/setRead', data, header)

export const payBill = (data = {}, header = {}) => network.post('/bill/payBill', data, header)

export const getDelete = (data = {}, header = {}) => network.post('/notice/getDelete', data, header)

export const deleteInfo = (data = {}, header = {}) => network.post('/notice/deleteInfo', data, header)

export const getAvailableDoctor = (data = {}, header = {}) => network.post('/medical-staff/getAvailableDoctor', data, header)

export const receptionAppoint = (data = {}, header = {}) => network.post('/appointment/receptionAppoint', data, header)

export const receptionGetBills = (data = {}, header = {}) => network.get('/bill/queryBill', data, header)

export const payBillFromReception = (data = {}, header = {}) => network.get('/bill/payFromReception', data, header)

export const regist = (data = {}, header = {}) => network.post('/user/register', data, header)

export const getIndexInfo = (data = {}, header = {}) => network.post('/information/getAllInfos', data, header)

export const sendFeedBack = (data = {}, header = {}) => network.post('/feed_back/send', data, header)